﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace zichan.Entity
{
    public class ServerPurposeSubClass
    {
        [Key]
        public int serverPurposeSubId { get; set; }
        [Required(ErrorMessage ="服务器用途类别不能为空")]
        public string serverPurposeSubName{ get; set; }
        public int serverPurposeId { get; set; }
        [Required(ErrorMessage = "序号不能为空")]
        [RegularExpression(@"^\+?[1-9]\d*$", ErrorMessage = "只能为正整数")]
        public int sort { get; set; }
        [NotMapped]
        public int UseCount { get; set; }
        /// <summary>
        /// 送知识产权
        /// </summary>
        public string IsSendProperty { get; set; }
        /// <summary>
        /// 无知识产权
        /// </summary>
        public string IsNoProperty { get; set; }

    }
}
